package us.mooresr.aircraftscheduling.client.ui;

import us.mooresr.aircraftscheduling.shared.model.User;
import us.mooresr.aircraftscheduling.shared.model.UserDetail;

import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.PopupView;
import com.google.inject.Inject;
import com.google.gwt.event.shared.EventBus;

public class UserDetailROPresenter extends
		PresenterWidget<UserDetailROPresenter.MyView> {

	public interface MyView extends PopupView {
		public void preLoad(User user, UserDetail userDetail);
		public void clear();
	}

	@Inject
	public UserDetailROPresenter(final EventBus eventBus, final MyView view) {
		super(eventBus, view);
	}

	@Override
	protected void onBind() {
		super.onBind();
	}
	
	public void preLoad(User user, UserDetail userDetail) {
		
		getView().preLoad(user, userDetail);
	}
	
	public void clear() {
		getView().clear();
		
	}
}
